package org.dromara.common.translation.core.impl.pay;

import lombok.AllArgsConstructor;

import org.dromara.common.core.service.pay.PayAlipayOrdersSignTranslationService;
import org.dromara.common.translation.annotation.Translation;
import org.dromara.common.translation.annotation.TranslationType;
import org.dromara.common.translation.core.impl.SimpleTranslationImpl;

@AllArgsConstructor
@TranslationType(type = "pay_alipay_orders_sign_id_to_object")
public class PayAlipayOrdersSignTranslationImpl extends SimpleTranslationImpl {


    private final PayAlipayOrdersSignTranslationService translationService ;

    @Override
    public Object translation(Object key, Translation translation) {
        if (key instanceof Integer id) {
            return translationService.selectObjectById(id);
        }
        return null;
    }
}
